import { GET, POST } from '@/utils/request';

const baseUrl = 'http://localhost:8001/api';

// 登录
export async function signInService(data) {
  return POST(`${baseUrl}/login/signIn`, data);
}

// 注册
export async function signUpService(data) {
  return POST(`${baseUrl}/login/signUp`, data);
}

// 种植管理-种植技术列表获取
export async function getZhongzhiguanliZhongzhijiluListService(data) {
  return POST(`${baseUrl}/zhongzhiguanli/zhongzhijiluList`, data);
}

export async function addNewFieldService(data) {
  return POST(`${baseUrl}/zhongzhiguanli/addNewField`, data);
}

export async function deleteFieldService(data) {
  return POST(`${baseUrl}/zhongzhiguanli/deleteField`, data);
}
